package online.inote.graphql.modules.book.controller;

import java.util.Arrays;
import java.util.List;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import online.inote.graphql.common.base.BaseController;
import online.inote.graphql.modules.book.entity.BookEntity;

/**
 * @description: TODO
 * @author XQF.Sui
 * @created 2019年4月20日 上午2:22:22
 * @version 1.0
 */
@RestController
@RequestMapping(value = "book")
public class BookController extends BaseController<BookEntity, Integer> {

	@GetMapping(value = "findBooks")
	public List<BookEntity> findBooks() {
		BookEntity book = service.selectByPrimaryKey(1);
		return Arrays.asList(new BookEntity[] { book });
	}
}